# a little hacky: the headers are in the parent of the configure subdir
AM_CPPFLAGS += \
-I$(top_srcdir)/../../include

if WITH_PCAP_FIX
AM_CPPFLAGS += -DWITH_PCAP_FIX
endif

libpi_bmv2_la_SOURCES = \
pi-bmv2-config.h \
pi_imp.cpp \
pi_tables_imp.cpp \
pi_act_prof_imp.cpp \
pi_counter_imp.cpp \
pi_meter_imp.cpp \
pi_learn_imp.cpp \
pi_mc_imp.cpp \
pi_clone_imp.cpp \
conn_mgr.h \
conn_mgr.cpp \
common.h \
common.cpp \
action_helpers.h \
action_helpers.cpp \
direct_res_spec.h \
direct_res_spec.cpp \
cpu_send_recv.h \
cpu_send_recv.cpp

libpi_bmv2_la_LIBADD = \
$(top_builddir)/../../src/libpip4info.la \
-lbmp4apps

lib_LTLIBRARIES = libpi_bmv2.la

distclean-local: distclean-ax-prefix-config-h
distclean-ax-prefix-config-h:
	rm -f pi-bmv2-config.h
